home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI478.ASC < prev    next >
Text File  |  1992-09-03  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  478
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  February 24, 1989                        PAGE  :  1/2
  12.  
  13.     TITLE  :  Changing Printer Characteristics in a Paradox Report
  14.  
  15.  
  16.  
  17.  
  18.   Paradox's report generator  does not directly support attributes,
  19.   such  as  bold,  underlining,  or  different  fonts,  in reports.
  20.   However, you can manipulate the printer to change to one of these
  21.   styles in the middle of a report.   The  following  are  two ways
  22.   this can be accomplished.
  23.  
  24.      1.  When in the report  generator,  place  a  calculated field
  25.          that holds the printer control string as well as the field
  26.          or string that you  wish  to affect.  For instance, to set
  27.          compressed print for a report title, the  calculated field
  28.          might be:
  29.  
  30.          "\015" + "Sample Report Heading" + "\018"
  31.             ^                                  ^
  32.             |                                  |
  33.          Compressed On                  Compressed Off
  34.  
  35.          On an IBM Graphics printer or compatible, this string will
  36.          print this heading in compressed  print,  and  then change
  37.          the print back to regular print for printing  the  rest of
  38.          the report.  The printer  control  codes  are,  of course,
  39.          specific to the individual printer and should  be obtained
  40.          from the printer manual.  Also, remember that a calculated
  41.          field in Paradox has a maximum length of 48 characters
  42.  
  43.      2.  You can also use the  PAL TYPEIN Command to change printer
  44.          characteristics.    To  do  this,  while  in   the  report
  45.          generator at the point where  you wish the title to begin,
  46.          press  <ALT-F10>  to  access  the  PAL  menu   and  select
  47.          Miniscript.  Then type:
  48.  
  49.          TYPEIN "\015" + Sample Report Heading" + "\018"
  50.  
  51.          This  will print the heading in the  same  manner  as  the
  52.          first example.  Keep  in  mind that the command line has a
  53.          maximum length of 51 characters.    Be  certain  to always
  54.          restore the regular report attributes  back  to  normal at
  55.          the end of the  string  you wish to emphasize, as with the
  56.          illustrative string, "\018".
  57.  
  58.   Both of these methods may change the spacing of other data on the
  59.   line,  so  you'll  need to insert and delete spaces as necessary.
  60.   You should print a "trial" report to test the new attributes.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  478
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  February 24, 1989                        PAGE  :  2/2
  78.  
  79.     TITLE  :  Changing Printer Characteristics in a Paradox Report
  80.  
  81.  
  82.  
  83.  
  84.   DISCLAIMER: You  have the right to use this technical information
  85.   subject to the terms  of  the  No-Nonsense License Statement that
  86.   you received with  the  Borland product to which this information
  87.   pertains.
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.